/* 登录和注册模态框基础样式 */
.login-modal,
.register-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.modal-body {
    padding: 2rem;
}

/* 表单样式 */
.auth-form .form-group {
    margin-bottom: 1.2rem;
}

.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="tel"] {
    width: 100%;
    height: 40px;
    padding: 0 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #333;
    background: #fff;
    box-sizing: border-box;
}

.auth-form input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.1);
}

/* 验证码区域样式 */
.phone-input,
.captcha-input {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.verify-btn {
    height: 40px;
    padding: 0 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    background: #fff;
    color: var(--primary-color);
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    min-width: 100px;
    flex-shrink: 0;
}

.captcha-img {
    width: 100px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

/* 选项和链接样式 */
.form-options {
    margin: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-options label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.form-options input[type="checkbox"] {
    margin-top: 3px;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

/* 按钮样式 */
.auth-form .submit-btn {
    width: 100%;
    height: 40px;
    margin-top: 1rem;
    border: none;
    border-radius: 8px;
    background: var(--primary-color);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-form .submit-btn:hover {
    background: #ff5252;
}

.switch-auth {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.switch-auth a {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 0.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }

    .modal-body {
        padding: 1.2rem;
    }

    .phone-input,
    .captcha-input {
        flex-direction: row;
    }

    .verify-btn {
        min-width: 90px;
        padding: 0 0.8rem;
    }

    .captcha-img {
        width: 90px;
    }
}

/* 独立认证页面样式 */
.auth-container {
    min-height: calc(100vh - 60px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: #f8f9fa;
}

.auth-form {
    background: #fff;
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.auth-form h2 {
    margin: 0 0 2rem;
    text-align: center;
    color: #333;
    font-size: 1.8rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .auth-container {
        padding: 1rem;
    }

    .auth-form {
        padding: 1.5rem;
    }
} 